package ar.org.cfired.creditos;

import java.util.HashMap;
import java.util.Map;

import org.jbpm.api.Configuration;
import org.jbpm.api.ExecutionService;
import org.jbpm.api.ProcessInstance;

public class GenerarDocumentosModificaciones {
	 public static void main(String[] args) {
	        ExecutionService executionSe = new Configuration().buildProcessEngine().getExecutionService();
	        ExecutionService executionService = new Configuration().buildProcessEngine().getExecutionService();
	        ProcessInstance processInstance = null;
	        Map<String, Object> variables = new HashMap<String, Object>();
	        variables.put("var1", "valor 1");
	        variables.put("usuarioModificacion", "vvaldes");
	        processInstance = executionService.startProcessInstanceByKey("Modificaciones", variables);
	        System.out.println(processInstance.getState());
	    }
}
